<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h2>Hello World!</h2>
    <h3><a href="save.jsp">添加员工</a></h3>
    <h3><a href="/employee/findAll">查看员工</a></h3>
</body>
</html>
<%--
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>

    &lt;%&ndash; 引入JQ和Bootstrap &ndash;%&gt;
    <script src="js/jquery/2.0.0/jquery.min.js"></script>
    <link href="css/bootstrap/3.3.6/bootstrap.min.css" rel="stylesheet">
    <script src="js/bootstrap/3.3.6/bootstrap.min.js"></script>
    <link href="css/style.css" rel="stylesheet">

    <title>员工管理页面 - 首页</title>

</head>

<body>

<div class="listDIV">
    <table class="table table-striped table-bordered table-hover table-condensed">
        <thead>
        <tr class="success">
            <th>年龄</th>
            <th>姓名</th>
            <th>性别</th>
            <th>地址</th>
            <th>编辑</th>
            <th>删除</th>
        </tr>
        </thead>

        <tbody>
        <c:forEach items="${employee}" var="e" varStatus="status">
            <tr>
                <td>${e.id}</td>
                <td>${e.age}</td>
                <td>${e.name}</td>
                <td>${e.sex}</td>
                <td>${e.address}</td>

                <td><a href="/employee/findById/?id=${e.id}"><span class="glyphicon glyphicon-edit"></span> </a></td>
                <td><a href="/employee/delete?id=${e.id}"><span class="glyphicon glyphicon-trash"></span> </a></td>
            </tr>
        </c:forEach>

        </tbody>
    </table>
</div>


<div class="addDIV">

    <div class="panel panel-success">
        <div class="panel-heading">
            <h3 class="panel-title">增加员工</h3>
        </div>
        <div class="panel-body">

            <form method="post" action="/employee/save" role="form">
                <table class="addTable">
                    <tr>
                        <td>年龄：</td>
                        <td><input type="text" name="age" id="age" placeholder="请在这里输入年龄"></td>
                    </tr>
                    <tr>
                        <td>姓名：</td>
                        <td><input type="text" name="name" id="name" placeholder="请在这里输入名字"></td>
                    </tr>
                    <tr>
                        <td>性别：</td>
                        <td><input type="radio" class="radio radio-inline" name="sex" value="男"> 男
                            <input type="radio" class="radio radio-inline" name="sex" value="女"> 女
                        </td>
                    </tr>
                    <tr>
                        <td>地址：</td>
                        <td><input type="text" name="address" id="address" placeholder="请在这里输入地址"></td>
                    </tr>
                    <tr class="submitTR">
                        <td colspan="2" align="center">
                            <button type="submit" class="btn btn-success">提 交</button>
                        </td>

                    </tr>

                </table>
            </form>
        </div>
    </div>

</div>


</body>
</html>
--%>
